﻿
#include <cmath>
#include <QDebug>
#include <QFontMetrics>
#include "element.h"

int VTLine::m_vline = 100;

VTLine::VTLine(void)
    :DrawLine()
{

}

int VTLine::mouseMove(QPoint /*point*/)
{
    return 0;
}

int VTLine::mouseLButtonPress(QPoint point)
{
    int x = point.rx();
    int y = point.ry();
    qDebug() << "HTLine::mouseLButtonPress";
    build(QPoint(m_vline, y), QPoint(x, y));
    return 1;
}

int VTLine::mouseLButtonRelease(QPoint point)
{
    Q_UNUSED(point);
    qDebug() << "HTLine::mouseLButtonRelease";
    return 0;
}

